{
gtk_css_node_set_state (priv->prelight_tab->cssnode,
gtk_css_node_get_state (priv->prelight_tab->cssnode) & ~GTK_STATE_FLAG_PRELIGHT);
- if (priv->prelight_tab->tab_label)
- gtk_style_context_remove_class (gtk_widget_get_style_context (priv->prelight_tab->tab_label),
- "prelight-page");
}
if (page)
{
gtk_css_node_set_state (page->cssnode,
gtk_css_node_get_state (page->cssnode) | GTK_STATE_FLAG_PRELIGHT);
- if (page->tab_label)
- gtk_style_context_add_class (gtk_widget_get_style_context (page->tab_label),
- "prelight-page");
}
priv->prelight_tab = page;
G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page),
notebook);
- if (priv->prelight_tab == page)
- gtk_style_context_add_class (gtk_widget_get_style_context (page->tab_label),
- "prelight-page");
-
if (priv->show_tabs && gtk_widget_get_visible (child))
{
gtk_widget_show (page->tab_label);
}
//here's the interesting stuff
- &:hover, &.prelight-page {
+ &:hover {
border-color: $borders_color;
}
&:active, &:backdrop:active {
(right, left) {
&.reorderable-page.#{$_tab} {
border-color: transparent;
- &:hover, &.prelight-page {
+ &:hover {
border-color: transparentize($borders_color,0.7);
border-#{$_border}-color: $borders_color;
background-color: transparentize($bg_color,0.8);
padding: 0 2px; // needed for a nicer focus ring
font-weight: bold;
color: $insensitive_fg_color;
- &:backdrop, &.prelight-page:backdrop {
+ &:backdrop {
color: mix($backdrop_fg_color, $backdrop_insensitive_color, 50%);
}
}
- .prelight-page .label, .label.prelight-page {
+ &:hover .label {
// prelight tab text
color: mix($fg_color, $insensitive_fg_color, 50%);
&:backdrop { // FIXME, it's the same as .label:backdrop up here
border-right-width: 3px; }
.notebook tab.right {
border-left-width: 3px; }
- .notebook tab:hover, .notebook tab.prelight-page {
+ .notebook tab:hover {
border-color: #1c1f1f; }
.notebook tab:active, .notebook tab:backdrop:active {
border-color: #215d9c; }
border-color: transparent; }
.notebook tab.reorderable-page.top {
border-color: transparent; }
- .notebook tab.reorderable-page.top:hover, .notebook tab.reorderable-page.top.prelight-page {
+ .notebook tab.reorderable-page.top:hover {
border-color: rgba(28, 31, 31, 0.3);
border-bottom-color: #1c1f1f;
background-color: rgba(57, 63, 63, 0.2); }
background-color: transparent; }
.notebook tab.reorderable-page.bottom {
border-color: transparent; }
- .notebook tab.reorderable-page.bottom:hover, .notebook tab.reorderable-page.bottom.prelight-page {
+ .notebook tab.reorderable-page.bottom:hover {
border-color: rgba(28, 31, 31, 0.3);
border-top-color: #1c1f1f;
background-color: rgba(57, 63, 63, 0.2); }
background-color: transparent; }
.notebook tab.reorderable-page.left {
border-color: transparent; }
- .notebook tab.reorderable-page.left:hover, .notebook tab.reorderable-page.left.prelight-page {
+ .notebook tab.reorderable-page.left:hover {
border-color: rgba(28, 31, 31, 0.3);
border-right-color: #1c1f1f;
background-color: rgba(57, 63, 63, 0.2); }
background-color: transparent; }
.notebook tab.reorderable-page.right {
border-color: transparent; }
- .notebook tab.reorderable-page.right:hover, .notebook tab.reorderable-page.right.prelight-page {
+ .notebook tab.reorderable-page.right:hover {
border-color: rgba(28, 31, 31, 0.3);
border-left-color: #1c1f1f;
background-color: rgba(57, 63, 63, 0.2); }
padding: 0 2px;
font-weight: bold;
color: #939695; }
- .notebook tab .label:backdrop, .notebook tab .label.prelight-page:backdrop {
+ .notebook tab .label:backdrop {
color: #787e7e; }
- .notebook tab .prelight-page .label, .notebook tab .label.prelight-page {
+ .notebook tab:hover .label {
color: #c0c2c0; }
- .notebook tab .prelight-page .label:backdrop, .notebook tab .label.prelight-page:backdrop {
+ .notebook tab:hover .label:backdrop {
color: #787e7e; }
.notebook tab:active .label {
color: #eeeeec; }
border-right-width: 3px; }
.notebook tab.right {
border-left-width: 3px; }
- .notebook tab:hover, .notebook tab.prelight-page {
+ .notebook tab:hover {
border-color: #a1a1a1; }
.notebook tab:active, .notebook tab:backdrop:active {
border-color: #4a90d9; }
border-color: transparent; }
.notebook tab.reorderable-page.top {
border-color: transparent; }
- .notebook tab.reorderable-page.top:hover, .notebook tab.reorderable-page.top.prelight-page {
+ .notebook tab.reorderable-page.top:hover {
border-color: rgba(161, 161, 161, 0.3);
border-bottom-color: #a1a1a1;
background-color: rgba(237, 237, 237, 0.2); }
background-color: transparent; }
.notebook tab.reorderable-page.bottom {
border-color: transparent; }
- .notebook tab.reorderable-page.bottom:hover, .notebook tab.reorderable-page.bottom.prelight-page {
+ .notebook tab.reorderable-page.bottom:hover {
border-color: rgba(161, 161, 161, 0.3);
border-top-color: #a1a1a1;
background-color: rgba(237, 237, 237, 0.2); }
background-color: transparent; }
.notebook tab.reorderable-page.left {
border-color: transparent; }
- .notebook tab.reorderable-page.left:hover, .notebook tab.reorderable-page.left.prelight-page {
+ .notebook tab.reorderable-page.left:hover {
border-color: rgba(161, 161, 161, 0.3);
border-right-color: #a1a1a1;
background-color: rgba(237, 237, 237, 0.2); }
background-color: transparent; }
.notebook tab.reorderable-page.right {
border-color: transparent; }
- .notebook tab.reorderable-page.right:hover, .notebook tab.reorderable-page.right.prelight-page {
+ .notebook tab.reorderable-page.right:hover {
border-color: rgba(161, 161, 161, 0.3);
border-left-color: #a1a1a1;
background-color: rgba(237, 237, 237, 0.2); }
padding: 0 2px;
font-weight: bold;
color: #8d9091; }
- .notebook tab .label:backdrop, .notebook tab .label.prelight-page:backdrop {
+ .notebook tab .label:backdrop {
color: #aaabac; }
- .notebook tab .prelight-page .label, .notebook tab .label.prelight-page {
+ .notebook tab:hover .label {
color: #5d6263; }
- .notebook tab .prelight-page .label:backdrop, .notebook tab .label.prelight-page:backdrop {
+ .notebook tab:hover .label:backdrop {
color: #aaabac; }
.notebook tab:active .label {
color: #2e3436; }
}
//here's the interesting stuff
- &:hover, &.prelight-page {
+ &:hover {
border-color: $borders_color;
}
&:active, &:backdrop:active {
(right, left) {
&.reorderable-page.#{$_tab} {
border-color: transparent;
- &:hover, &.prelight-page {
+ &:hover {
border-color: transparentize($borders_color,0.7);
border-#{$_border}-color: $borders_color;
background-color: transparentize($bg_color,0.8);
padding: 0 2px; // needed for a nicer focus ring
font-weight: bold;
color: $insensitive_fg_color; /* color: inherit doesn't work here */
- &:backdrop, &.prelight-page:backdrop {
+ &:backdrop {
color: $insensitive_fg_color;
}
}
- &.prelight-page GtkLabel, GtkLabel.prelight-page {
+ &:hover GtkLabel {
// prelight tab text
color: mix($fg_color, $insensitive_fg_color, 50%);
}
border-right-width: 3px; }
.notebook tab.right {
border-left-width: 3px; }
- .notebook tab:hover, .notebook tab.prelight-page {
+ .notebook tab:hover {
border-color: #7f7f7f; }
.notebook tab:active, .notebook tab:backdrop:active {
border-color: #000; }
border-color: transparent; }
.notebook tab.reorderable-page.top {
border-color: transparent; }
- .notebook tab.reorderable-page.top:hover, .notebook tab.reorderable-page.top.prelight-page {
+ .notebook tab.reorderable-page.top:hover {
border-color: rgba(127, 127, 127, 0.3);
border-bottom-color: #7f7f7f;
background-color: rgba(255, 255, 255, 0.2); }
background-color: transparent; }
.notebook tab.reorderable-page.bottom {
border-color: transparent; }
- .notebook tab.reorderable-page.bottom:hover, .notebook tab.reorderable-page.bottom.prelight-page {
+ .notebook tab.reorderable-page.bottom:hover {
border-color: rgba(127, 127, 127, 0.3);
border-top-color: #7f7f7f;
background-color: rgba(255, 255, 255, 0.2); }
background-color: transparent; }
.notebook tab.reorderable-page.left {
border-color: transparent; }
- .notebook tab.reorderable-page.left:hover, .notebook tab.reorderable-page.left.prelight-page {
+ .notebook tab.reorderable-page.left:hover {
border-color: rgba(127, 127, 127, 0.3);
border-right-color: #7f7f7f;
background-color: rgba(255, 255, 255, 0.2); }
background-color: transparent; }
.notebook tab.reorderable-page.right {
border-color: transparent; }
- .notebook tab.reorderable-page.right:hover, .notebook tab.reorderable-page.right.prelight-page {
+ .notebook tab.reorderable-page.right:hover {
border-color: rgba(127, 127, 127, 0.3);
border-left-color: #7f7f7f;
background-color: rgba(255, 255, 255, 0.2); }
font-weight: bold;
color: #7f7f7f;
/* color: inherit doesn't work here */ }
- .notebook tab GtkLabel:backdrop, .notebook tab GtkLabel.prelight-page:backdrop {
+ .notebook tab GtkLabel:backdrop {
color: #7f7f7f; }
- .notebook tab.prelight-page GtkLabel, .notebook tab GtkLabel.prelight-page {
+ .notebook tab:hover GtkLabel {
color: #3f3f3f; }
.notebook tab:active GtkLabel {
color: #000; }